package com.joseph.websocket.bean;

public class UserSession {

    private String storeCode;

    private String sessionId;

    private String sessionType;

    public String getStoreCode() {
        return storeCode;
    }

    public void setStoreCode(String storeCode) {
        this.storeCode = storeCode;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getSessionType() {
        return sessionType;
    }

    public void setSessionType(String sessionType) {
        this.sessionType = sessionType;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        UserSession that = (UserSession) o;

        return storeCode != null ? storeCode.equals(that.storeCode) : that.storeCode == null;
    }

    @Override
    public int hashCode() {
        return storeCode != null ? storeCode.hashCode() : 0;
    }
}
